//
//  THsectionHeaderView.m
//  YJB
//
//  Created by 韦朝宾 on 16/6/2.
//  Copyright © 2016年 YJB. All rights reserved.
//

#import "THsectionHeaderView.h"

@interface THsectionHeaderView ()
//标题背景
@property (weak, nonatomic) IBOutlet UIImageView *topicImageView;
@property (weak, nonatomic) IBOutlet UILabel *topicLabel;

@end


@implementation THsectionHeaderView
+ (THsectionHeaderView *)geSectionHeaderView
{
    return [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil]lastObject];
}

-(void)setIsNotic:(BOOL)isNotic
{
    _isNotic = isNotic;
    if (isNotic)
    {
        _topicImageView.image = Image(@"latestNews_Bg");
        _topicLabel.text = @"最新公告";
    }else
    {
       _topicImageView.image = Image(@"bbs_Bg");
       _topicLabel.text = @"论坛讯息";
    }
}

@end
